﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Serialization;
using Users;
using Lists;
using Sim;

namespace Users
{
    [Serializable()]
    public class Diver : User
    {
        /// <summary>
        /// List of contest this diver is/has been signed up for.
        /// </summary>
        /// 
        
        public List<Dive> dives { get; set; }

        public double totalScore { get; set; }

        public Diver()
            : base()
        {
            totalScore = 0;
            dives = new List<Dive>();
        }
        /// <summary>
        /// TODO: Bryta ut uname och pword och göra en ny klass, möjligtvis använda seal
        /// </summary>

        public Diver(string firstName, string lastName, int age, string nation, string sex, int level, string username, string password)
            : base(firstName,lastName,age,nation,sex,level,username,password)
        {
            totalScore = 0;
            dives = new List<Dive>();
        }

        ///// <summary>
        ///// Send the dive information to either the administrator or the judge.
        ///// Sends name, nation, form etc....
        ///// </summary>
        //public void sendDive()
        //{
        //    //Input code or choose code, split code into chars

        //    //Send code to calculator and calculate


        //}
    }
}
